<?php
/**
 * @author shuang
 * @date 2016-12-12 8:07:02
 */
$this->title = "我的推广";
?>
<div class="content native-scroll">
    <div class="list-block media-list">
        <ul>
            <li class="item-content">
                <div class="item-media"><span class="iconfont i-share size-16"></span></div>
                <div class="item-inner">
                    <div class="item-title-row">
                        <div class="item-title">我的邀请码</div>
                    </div>
                    <div class="item-subtitle">
                        <strong class="size-16"><?php echo Yii::$app->user->identity->my_code; ?></strong> 
                    </div>
                </div>
            </li>
            <li class="item-content">
                <div class="item-media"><span class="iconfont i-friends size-16"></span></div>
                <div class="item-inner">
                    <div class="item-title-row">
                        <div class="item-title">我的小伙伴</div>
                    </div>
                    <div class="item-subtitle">
                        <strong class="clr-red size-16"><?php echo $mytuicount;?></strong>
                        <span class="size-08 clr-lightgray">人</span>
                    </div>
                </div>
            </li>
            <li class="item-content">
                <div class="item-media"><span class="iconfont i-chongzhi size-16"></span></div>
                <div class="item-inner">
                    <div class="item-title-row">
                        <div class="item-title">已获得奖励</div>
                    </div>
                    <div class="item-subtitle">
                        <strong class="size-16 clr-green"><?php echo Yii::$app->user->identity->wallet ? Yii::$app->user->identity->wallet->offline_amount : 0;?></strong>
                        <span class="size-08 clr-lightgray">元</span>
                    </div>
                </div>
            </li>
        </ul>
    </div>
    <div class="content-block">
        <div class="row">
            <div class="col-50">
                <a href="#" data-popup=".popup-invite-link" class="button button-big open-popup">
                    <span class="iconfont i-link"></span>&nbsp;&nbsp;我的链接
                </a>
            </div>
            <div class="col-50">
                <a href="#" data-popup=".popup-invite-qrocde" class="button button-big open-popup">
                    <span class="iconfont i-code"></span>&nbsp;&nbsp;我的二维码
                </a>
            </div>
        </div>
    </div>
</div>
<div class="popup popup-invite-link">
    <header class="bar bar-nav">	    	
        <h1 class="title">我的链接</h1>
    </header>
    <div class="content native-scroll">
        <div class="content-block">
            <textarea class="xn-textarea" readonly>http://www.toupiao518.cn/site/signup.html?id=<?php echo Yii::$app->user->identity->my_code; ?></textarea>
        </div>
        <div class="content-block">
            <a href="#" class="button button-big close-popup">返回</a>
        </div>
    </div>
</div>
<div class="popup popup-invite-qrocde">
    <header class="bar bar-nav">	    	
        <h1 class="title">我的二维码</h1>
    </header>
    <div class="content native-scroll">
        <div class="content-block center-block">
            <img src="<?php echo yii\helpers\Url::to(["profile/qrcode"])?>" alt="" />
        </div>
        <div class="content-block">
            <a href="#" class="button button-big close-popup">返回</a>
        </div>
    </div>
</div>
<div class="popup-overlay"></div>


